gtk4.git
10 years agogtk: Strip newlines from g_warning and g_error
Matthias Clasen [Sun, 28 Feb 2016 16:06:25 +0000 (11:06 -0500)]
gtk: Strip newlines from g_warning and g_error

g_logv adds one for us already.

10 years agogdkwindow: cleanup, avoid direct access to display members
Paolo Borelli [Sun, 28 Feb 2016 15:22:31 +0000 (16:22 +0100)]
gdkwindow: cleanup, avoid direct access to display members

10 years agoUpdated POTFILES.skip
Piotr Drąg [Sun, 28 Feb 2016 16:11:05 +0000 (17:11 +0100)]
Updated POTFILES.skip

10 years agowin32: close the screen when disposing the display
Paolo Borelli [Sun, 28 Feb 2016 14:33:28 +0000 (15:33 +0100)]
win32: close the screen when disposing the display

10 years agoAdd a release note about subclassing
Matthias Clasen [Sun, 28 Feb 2016 14:38:31 +0000 (09:38 -0500)]
Add a release note about subclassing

This is showing up in bug reports like
https://bugzilla.gnome.org/show_bug.cgi?id=762754
so better add a note that gives a hint at the solution.

10 years agoframe: Don't move border gadget and child down
Timm Bäder [Fri, 26 Feb 2016 13:09:28 +0000 (14:09 +0100)]
frame: Don't move border gadget and child down

Setting label-yalign should affect the border gadget, but we need to
compensate for its position by moving the child down or up, depending on
the border gadget's position, so the child never moves.

https://bugzilla.gnome.org/show_bug.cgi?id=762123

10 years agoFix builddir != srcdir
Emmanuele Bassi [Sun, 28 Feb 2016 12:21:26 +0000 (12:21 +0000)]
Fix builddir != srcdir

The gdkprivate-wayland.h header file is included from the top-level gdk
directory; this means that all included files referenced in the header
must be relative to the `gdk` directory, otherwise the build will fail
when the build directory is not equal to the source directory.

This commit fixes a build failure under continuous:

In file included from ../../gdk/gdkdisplaymanager.c:60:0:
../../gdk/wayland/gdkprivate-wayland.h:40:51: fatal error:
gtk-primary-selection-client-protocol.h: No such file or directory
 #include "gtk-primary-selection-client-protocol.h"
                                                   ^
compilation terminated.
Makefile:1155: recipe for target 'libgdk_3_la-gdkdisplaymanager.lo' failed
make[4]: *** [libgdk_3_la-gdkdisplaymanager.lo] Error 1

10 years agowin32: factor out on_displaychange_event method for the screen
Paolo Borelli [Sun, 28 Feb 2016 11:03:00 +0000 (12:03 +0100)]
win32: factor out on_displaychange_event method for the screen

This allows us to make more initialization methods private to the
screen object.

10 years agowin32: make init_root_window private to the screen object
Paolo Borelli [Sun, 28 Feb 2016 10:56:01 +0000 (11:56 +0100)]
win32: make init_root_window private to the screen object

It can be called during the screen object initilization

10 years agowin32: move function
Paolo Borelli [Sun, 28 Feb 2016 10:53:10 +0000 (11:53 +0100)]
win32: move function

Just reorder code in preparation to calling functions defined
before this one

10 years agowin32: rename initialization function for clarity
Paolo Borelli [Sun, 28 Feb 2016 10:50:07 +0000 (11:50 +0100)]
win32: rename initialization function for clarity

10 years agowin32: do not confuse gtk-doc
Paolo Borelli [Sun, 28 Feb 2016 10:25:54 +0000 (11:25 +0100)]
win32: do not confuse gtk-doc

10 years agowin32: move gdkvisual code in gdkscreen
Paolo Borelli [Sat, 27 Feb 2016 14:23:19 +0000 (15:23 +0100)]
win32: move gdkvisual code in gdkscreen

Except for the init function, all the visual related code is made
of gdkscreen vfuncs, so let's move it to gdkscreen-win32. This way
we avoid keeping other static variables and instead store the info
inside the screen struct.

10 years agogtk-demo: Simplify ui files a bit
Matthias Clasen [Sun, 28 Feb 2016 04:46:25 +0000 (23:46 -0500)]
gtk-demo: Simplify ui files a bit

Strip unneeded IDs.

10 years agogtk-demo: Put hte app menu in a separate file
Matthias Clasen [Sun, 28 Feb 2016 04:43:06 +0000 (23:43 -0500)]
gtk-demo: Put hte app menu in a separate file

No need to cram it in the same file as the main window.

10 years agogtk-demo: Add some padding in sidebar
Matthias Clasen [Sun, 28 Feb 2016 04:35:33 +0000 (23:35 -0500)]
gtk-demo: Add some padding in sidebar

Add some padding on the right, to avoid the scrollbar and make
the sidebar appear balanced.

10 years agotutorial: Drop excessive margin from headerbar
Matthias Clasen [Sun, 28 Feb 2016 04:28:17 +0000 (23:28 -0500)]
tutorial: Drop excessive margin from headerbar

It is no longer necessary to add extra margins around the
center child in a headerbar.

10 years agowidget-factory: Make the sliding opt-in
Matthias Clasen [Sun, 28 Feb 2016 04:12:15 +0000 (23:12 -0500)]
widget-factory: Make the sliding opt-in

The sliding is a little disorienting, so turn it off by default
and add a checkbutton for it in the gear menu.

10 years agofile chooser: Don't ellipsize "Other Locations"
Matthias Clasen [Sun, 28 Feb 2016 04:03:55 +0000 (23:03 -0500)]
file chooser: Don't ellipsize "Other Locations"

It just looks wrong if the file chooser comes up with
"Other Locations" ellipsized. Treat it like the other
fixed entries. We only want to ellipsize bookmarks, because
their length is unpredictable.

10 years agogtk3-demo: Update css
Matthias Clasen [Sun, 28 Feb 2016 03:39:09 +0000 (22:39 -0500)]
gtk3-demo: Update css

Clean up any deprecation warnings from the css examples in
gtk3-demo.

10 years agoUpdate Catalan translation
Jordi Mas [Sat, 27 Feb 2016 19:22:55 +0000 (20:22 +0100)]
Update Catalan translation

10 years agowin32 theme: Implement GtkFrame
Benjamin Otte [Sat, 27 Feb 2016 16:02:59 +0000 (17:02 +0100)]
win32 theme: Implement GtkFrame

10 years agowin32 theme: Remove special case for notebooks
Benjamin Otte [Sat, 27 Feb 2016 04:46:00 +0000 (05:46 +0100)]
win32 theme: Remove special case for notebooks

The special case is coded into Wine, but it makes notebooks
disappear wrong. So remove it.

10 years agowin32: Implement fallback code for tabs
Benjamin Otte [Sat, 27 Feb 2016 13:23:06 +0000 (14:23 +0100)]
win32: Implement fallback code for tabs

This is naive code in that it doesn't do the rounded edges for the
tab items yet. We can fix that later I guess.

10 years agowin32: Add fallback drawing code for window frames
Benjamin Otte [Sat, 27 Feb 2016 13:16:50 +0000 (14:16 +0100)]
win32: Add fallback drawing code for window frames

10 years agowin32: Finish button drawing code
Benjamin Otte [Sat, 27 Feb 2016 12:28:14 +0000 (13:28 +0100)]
win32: Finish button drawing code

We now draw real Windows 95 buttons.

Also split out a draw_edge() function that is supposed to emulate
Windows' DrawEdge() function. I guess we'll need it in other places,
too.

10 years agogdk: calculate pixel color shift and precision lazily
Paolo Borelli [Sat, 27 Feb 2016 10:43:18 +0000 (11:43 +0100)]
gdk: calculate pixel color shift and precision lazily

This gets rid of the decompose_mask utility entirely and simplifies
backend code.

10 years agogdk: factor out utility shared among backends
Paolo Borelli [Sat, 27 Feb 2016 09:46:59 +0000 (10:46 +0100)]
gdk: factor out utility shared among backends

Removes duplicated code and makes sure we use the version which
is safe against infinite loops

10 years agonotebook: Redo notebook implementation
Benjamin Otte [Sat, 27 Feb 2016 02:58:40 +0000 (03:58 +0100)]
notebook: Redo notebook implementation

So far, this only reworks the tabs at top implementation.
Windows doesn't have support for theming tabs at left/right/bottom
so we need to figure out what to do there. Wine falls back to
unthemed code.

10 years agoboxgadget: Add ability to draw children in reverse
Benjamin Otte [Sat, 27 Feb 2016 02:56:07 +0000 (03:56 +0100)]
boxgadget: Add ability to draw children in reverse

This is necessary for GtkNotebook so that the stack is always drawn
before the header.
And that is necessary so that the active tab can use negative
margins to overdraw the border of the stack to create a gap and
simulate old GTK2-style visuals for notebooks.

10 years agocssimagewin32: IMplement printing
Benjamin Otte [Fri, 26 Feb 2016 23:40:09 +0000 (00:40 +0100)]
cssimagewin32: IMplement printing

Caveat: over() and margins() arent' printed, but they are soon gonna
be removed anyway.

10 years agowindow: Include decoration border and padding in resize area
Benjamin Otte [Fri, 26 Feb 2016 05:49:35 +0000 (06:49 +0100)]
window: Include decoration border and padding in resize area

This is relevant for the Windows theme, which is the only theme that
uses padding on decorations. All other themes are unaffected.

10 years agonotebook: The active tab is now :checked
Benjamin Otte [Sat, 27 Feb 2016 02:48:46 +0000 (03:48 +0100)]
notebook: The active tab is now :checked

:active is reserved for "mouse button down on node", so we have to use
something else. And stack switcher and radio buttons use :checked for
the active widget, so it makes sense to use :checked for the active tab,
too.

Themes have been adapted.

TODO: Implement :active for tabs.

10 years agotextview: Support borders in text node
Benjamin Otte [Sat, 27 Feb 2016 02:39:51 +0000 (03:39 +0100)]
textview: Support borders in text node

10 years agotextview: Fix coordinates when background drawing of text node
Benjamin Otte [Sat, 27 Feb 2016 02:26:52 +0000 (03:26 +0100)]
textview: Fix coordinates when background drawing of text node

Fixes black areas in source view of gtk-demo.

10 years agowayland: Survive without primary selection
Matthias Clasen [Sat, 27 Feb 2016 00:41:25 +0000 (19:41 -0500)]
wayland: Survive without primary selection

I am testing GTK+ master against mutter 3.19.90, so I'd
like GTK+ to survive even when the compositor does not
support the primary selection interface.

10 years agoUpdated Occitan translation
Cédric Valmary [Fri, 26 Feb 2016 20:56:32 +0000 (20:56 +0000)]
Updated Occitan translation

10 years agoAvoid an out-of-bounds access
Matthias Clasen [Fri, 26 Feb 2016 20:50:31 +0000 (15:50 -0500)]
Avoid an out-of-bounds access

When the offset gets smaller than min_offset, we can't
access the array at that position.

10 years agoPlug a small memory leak
Matthias Clasen [Fri, 26 Feb 2016 20:50:08 +0000 (15:50 -0500)]
Plug a small memory leak

10 years agoinfobar: Avoid a memory leak in an error case
Matthias Clasen [Fri, 26 Feb 2016 19:55:20 +0000 (14:55 -0500)]
infobar: Avoid a memory leak in an error case

Parsing <action-widgets> could sometimes fail to free
some of the data, if a nonexisting widget is referenced.
Found by gcc's leak sanitizer.

10 years agolevelbar: Avoid a use-after-free
Matthias Clasen [Fri, 26 Feb 2016 19:51:24 +0000 (14:51 -0500)]
levelbar: Avoid a use-after-free

We were freeing the old offset before using its name to
recreate a new one. Don't do that.
Found by gcc's undefined behavior sanitizer.

10 years agodialog: Avoid a memory leak in an error case
Matthias Clasen [Fri, 26 Feb 2016 19:50:25 +0000 (14:50 -0500)]
dialog: Avoid a memory leak in an error case

Parsing <action-widgets> could sometimes fail to free
some of the data, if a nonexisting widget is referenced.
Found by gcc's leak sanitizer.

10 years agocssselector: Don't invoke undefined behavior
Matthias Clasen [Fri, 26 Feb 2016 19:48:21 +0000 (14:48 -0500)]
cssselector: Don't invoke undefined behavior

Avoid undefined behavior in the calculation of some
hash values. Found by gcc's undefined behavior sanitizer.

10 years agoAvoid an a crash with GTK_DEBUG=builder
Matthias Clasen [Fri, 26 Feb 2016 19:47:16 +0000 (14:47 -0500)]
Avoid an a crash with GTK_DEBUG=builder

We might cast objects to GtkBuildable even if they aren't,
to print their names. Don't do that.

Found by gcc's address sanitizer.

10 years agoFix an memory overrun
Matthias Clasen [Fri, 26 Feb 2016 18:08:45 +0000 (13:08 -0500)]
Fix an memory overrun

This was detected by gccs address sanitizer.

10 years agoUpdated Occitan translation
Cédric Valmary [Fri, 26 Feb 2016 20:35:37 +0000 (20:35 +0000)]
Updated Occitan translation

10 years agowayland: Use the page size as the selection buffer size
Carlos Garnacho [Thu, 25 Feb 2016 23:28:05 +0000 (00:28 +0100)]
wayland: Use the page size as the selection buffer size

And ensure we don't attempt to read EOF twice, once is enough.

10 years agowayland: Implement the (so far internal) primary selection protocol
Carlos Garnacho [Thu, 4 Feb 2016 16:33:51 +0000 (17:33 +0100)]
wayland: Implement the (so far internal) primary selection protocol

Implement it using the internal copy of the protocol. Otherwise,
we just deal with it the same than clipboard selection, just mapping
it to the PRIMARY atom instead of the CLIPBOARD one.

https://bugzilla.gnome.org/show_bug.cgi?id=762561

10 years agowayland: Make the function to get the last serial a seat one
Carlos Garnacho [Tue, 23 Feb 2016 19:32:31 +0000 (20:32 +0100)]
wayland: Make the function to get the last serial a seat one

This will be useful for primary selection.

https://bugzilla.gnome.org/show_bug.cgi?id=762561

10 years agowayland: Add gtk-primary-selection protocol
Carlos Garnacho [Tue, 23 Feb 2016 19:20:42 +0000 (20:20 +0100)]
wayland: Add gtk-primary-selection protocol

This protocol is an internal mirror of the primary selection drafts
being proposed for wayland-protocols. No changes besides prefix/suffix
changes.

https://bugzilla.gnome.org/show_bug.cgi?id=762561

10 years agoAdwaita: notebook tab sizing fix
Lapo Calamandrei [Fri, 26 Feb 2016 18:01:19 +0000 (19:01 +0100)]
Adwaita: notebook tab sizing fix

10 years agoW32: Fix for commit 1f74f12d9, re-enabling decimal separator key
Fredy Paquet [Fri, 26 Feb 2016 17:21:26 +0000 (17:21 +0000)]
W32: Fix for commit 1f74f12d9, re-enabling decimal separator key

1f74f12d9 rendered entry of keypad decimal mark unuseable for
several national keyboard layouts, this commit amends that, at
least for W32, and makes GTK+ behave more or less the same way
W32 behaves.

The patch works like this:
- When typing the first character at the keyboard or when switching
  keyboard layouts, the decimal mark character will be cached in the
  static variable "decimal_mark" within gdkkeys-win32.c

- in case of WIN32, gdk_keyval_to_unicode() asks gdkkeys-win32.c for the
  current decimal_mark when converting GDK_KEY_KP_Decimal.

https://bugzilla.gnome.org/show_bug.cgi?id=756751

10 years agoAdwaita: stricter selector for split headerbar separator
Lapo Calamandrei [Fri, 26 Feb 2016 12:15:37 +0000 (13:15 +0100)]
Adwaita: stricter selector for split headerbar separator

with a descendant select was erroneusly catching normal headerbar
separators in paned split headerabar case, see gedit. Using a child
selector fixes.

10 years agoAdwaita: simplify mixed buttons styling
Lapo Calamandrei [Fri, 26 Feb 2016 12:07:09 +0000 (13:07 +0100)]
Adwaita: simplify mixed buttons styling

10 years agoAdwaita: fix separator in non paned using split headerbar
Lapo Calamandrei [Fri, 26 Feb 2016 11:53:02 +0000 (12:53 +0100)]
Adwaita: fix separator in non paned using split headerbar

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=762593

10 years agogtkplacessidebar: use gpointers in trash row
Carlos Soriano [Fri, 26 Feb 2016 10:54:53 +0000 (11:54 +0100)]
gtkplacessidebar: use gpointers in trash row

It's the right casting. Forgot to push it with the previous patch.

10 years agogtkplacessidebar: clean up trash row on destroy
Carlos Soriano [Fri, 26 Feb 2016 10:01:38 +0000 (11:01 +0100)]
gtkplacessidebar: clean up trash row on destroy

Track with a weak ref the trash row, so we can clean up the data in the
private struct.

Spotted and reviewed by Christian Hergert.

10 years agoUpdated Hungarian translation
Gábor Kelemen [Fri, 26 Feb 2016 09:14:53 +0000 (09:14 +0000)]
Updated Hungarian translation

10 years agoGDK W32: Fix the filling of MINMAXINFO
Руслан Ижбулатов [Wed, 24 Feb 2016 17:20:33 +0000 (17:20 +0000)]
GDK W32: Fix the filling of MINMAXINFO

1) MSDN says that the coordinates of the maximized window
   must be specified as if the window was on the primary display,
   even if nearest display where it ends up is not the primary display.
   So instead of using nearest display work area verbatim,
   use it only to account for taskbar size, while using
   primary display top-left corner (0:0) as the reference point.
2) MSDN says that max tracking size is a system property, we
   should just call GetSystemMetrics() and use that.

https://bugzilla.gnome.org/show_bug.cgi?id=762629

10 years agoDocument CSS win32 size support
Matthias Clasen [Fri, 26 Feb 2016 05:13:34 +0000 (00:13 -0500)]
Document CSS win32 size support

10 years agowin32 theme: Make titlebuttons look like they're the right size
Benjamin Otte [Fri, 26 Feb 2016 02:17:01 +0000 (03:17 +0100)]
win32 theme: Make titlebuttons look like they're the right size

This is a hack because we can't really rtesize the buttons.

Instead, we draw the background only over the area that they would
be drawn if they were drawn by Windows. The button is still selectable
outside of this area, but what can you do...

10 years agowin32 theme: Fix decorations
Benjamin Otte [Fri, 26 Feb 2016 02:15:53 +0000 (03:15 +0100)]
win32 theme: Fix decorations

... and draw them properly.

10 years agoxi2: Add some more debug spew
Matthias Clasen [Fri, 26 Feb 2016 02:19:31 +0000 (21:19 -0500)]
xi2: Add some more debug spew

Log the valuators we use or ignore.

10 years agoinspector: Simplify general tab setup
Matthias Clasen [Fri, 26 Feb 2016 01:49:09 +0000 (20:49 -0500)]
inspector: Simplify general tab setup

Factor out the code to create a listbox row with two labels,
and use it throughout.

10 years agoinspector: React to device changes
Matthias Clasen [Fri, 26 Feb 2016 01:28:23 +0000 (20:28 -0500)]
inspector: React to device changes

Recreate the device section in the general tab when
devices come or go.

10 years agoRemove redundant words from docs
Matthias Clasen [Fri, 26 Feb 2016 01:16:21 +0000 (20:16 -0500)]
Remove redundant words from docs

An either without an or doesn't add anything.

10 years agoFix a copy-paste error
Matthias Clasen [Fri, 26 Feb 2016 01:12:53 +0000 (20:12 -0500)]
Fix a copy-paste error

10 years agowidget-factory: transition pages
Matt Watson [Wed, 24 Feb 2016 18:41:45 +0000 (10:41 -0800)]
widget-factory: transition pages

https://bugzilla.gnome.org/show_bug.cgi?id=762642

10 years agowindow: Draw decorations in the right place
Benjamin Otte [Thu, 25 Feb 2016 22:20:31 +0000 (23:20 +0100)]
window: Draw decorations in the right place

When we draw our own shadows, we need to offset the calls to render the
background to the border rectangle.

10 years agoBetter baseline adjustment
Matthias Clasen [Thu, 25 Feb 2016 21:36:13 +0000 (16:36 -0500)]
Better baseline adjustment

The way we were adjusting baselines if min-height forces
a size increase was not quite working as intended. Redo
it in a simpler way: just split up the excess and count
half of it for above the baseline and half below.

This fixes button labels in dialogs appearing too low.

10 years agofix a typo
Matthias Clasen [Thu, 25 Feb 2016 21:17:34 +0000 (16:17 -0500)]
fix a typo

10 years agoMove .keycap docs from GtkFrame to GtkLabel
Timm Bäder [Thu, 25 Feb 2016 18:23:40 +0000 (19:23 +0100)]
Move .keycap docs from GtkFrame to GtkLabel

That's where .keycap is used nowadays.

10 years agoframe: Measure border gadget separately
Timm Bäder [Thu, 25 Feb 2016 17:41:24 +0000 (18:41 +0100)]
frame: Measure border gadget separately

https://bugzilla.gnome.org/show_bug.cgi?id=760482

10 years agoframe: Let GtkContainer handle border-width
Timm Bäder [Thu, 25 Feb 2016 17:40:44 +0000 (18:40 +0100)]
frame: Let GtkContainer handle border-width

https://bugzilla.gnome.org/show_bug.cgi?id=760482

10 years agoicon helper: Don't set baseline to 0
Matthias Clasen [Thu, 25 Feb 2016 18:18:02 +0000 (13:18 -0500)]
icon helper: Don't set baseline to 0

It is clearly not the intention that the baseline of icons is at
the very top. The visible effect of this was that spin buttons were
higher than expeted, because the box gadget was trying to line up
the baseline of the text with the top of the buttons, forcing extra
height to be requested.

Just don't set a baseline at all for now.

10 years agoUpdated Brazilian Portuguese translation
Artur de Aquino Morais [Thu, 25 Feb 2016 16:30:11 +0000 (16:30 +0000)]
Updated Brazilian Portuguese translation

10 years agoUpdated Polish translation
Piotr Drąg [Thu, 25 Feb 2016 16:26:45 +0000 (17:26 +0100)]
Updated Polish translation

10 years agowin32 theme: Make entries and textview work
Benjamin Otte [Tue, 23 Feb 2016 04:05:37 +0000 (05:05 +0100)]
win32 theme: Make entries and textview work

10 years agopixelcache: Don't have a style context argument
Benjamin Otte [Thu, 25 Feb 2016 15:14:37 +0000 (16:14 +0100)]
pixelcache: Don't have a style context argument

That would imply the pixelcache monitors the style context for changes
and it doesn't do that.

Its only use case was opacity checks, so add
gtk_pixel_cache_se_is_opaque() instead.

10 years agostylecontext: Move background_is_opaque() function
Benjamin Otte [Thu, 25 Feb 2016 14:40:04 +0000 (15:40 +0100)]
stylecontext: Move background_is_opaque() function

The new way, it no longer depends on the style context, but on the
CssStyle. This will become relevant in the next commit.

10 years agoUpdated Galician translation
Fran Dieguez [Thu, 25 Feb 2016 15:34:16 +0000 (15:34 +0000)]
Updated Galician translation

10 years agoinspector: use guint to fix the windows build
Ignacio Casal Quinteiro [Thu, 25 Feb 2016 14:25:19 +0000 (15:25 +0100)]
inspector: use guint to fix the windows build

10 years agogtkplacessidebar: avoid unresponsive UI while trashing
Carlos Soriano [Thu, 25 Feb 2016 13:25:40 +0000 (14:25 +0100)]
gtkplacessidebar: avoid unresponsive UI while trashing

We were updating the whole places sidebar when the trash changed.
This effectively removes all rows and create new ones for every trash
state change.

Although when using GtkTreeView it was somehow ok, with the new
implementation with GtkListBox this effectively locks the UI while the
trash operations are being performed.

When performing operations for i.e. 100 files, the UI can be locked
for more than 1 minute since gvfs-trash usually takes time.

To fix this just update the icon of the trash when the state of the
trash change instead of the whole sidebar.

https://bugzilla.gnome.org/show_bug.cgi?id=762677

10 years agoinspector: Show ::num-touches for touch devices
Matthias Clasen [Thu, 25 Feb 2016 13:26:34 +0000 (08:26 -0500)]
inspector: Show ::num-touches for touch devices

This can be useful information.

10 years agoxi2: Set ::num-touches for touch devices
Matthias Clasen [Thu, 25 Feb 2016 13:25:50 +0000 (08:25 -0500)]
xi2: Set ::num-touches for touch devices

XI2 has this information, so pass it on.

10 years agodevice: Add a num-touches property
Matthias Clasen [Thu, 25 Feb 2016 13:25:14 +0000 (08:25 -0500)]
device: Add a num-touches property

Some backends can provide this information for touch devices,
and it can be useful to have, so add this property.

10 years agogtkplacesview: clean up mount server callback
Carlos Soriano [Thu, 25 Feb 2016 12:39:23 +0000 (13:39 +0100)]
gtkplacesview: clean up mount server callback

And fix a warning of unused variable.

Reviewed by Nacho on IRC

10 years agox11: Update seat capabilities
Matthias Clasen [Thu, 25 Feb 2016 11:18:41 +0000 (06:18 -0500)]
x11: Update seat capabilities

The default seat implementation was never returning capabilities,
which is broken. It is visible too, since the inspector shows seat
information now.

10 years agoinspector: Update for screen config changes
Matthias Clasen [Thu, 25 Feb 2016 06:21:27 +0000 (01:21 -0500)]
inspector: Update for screen config changes

Repopulate the display section whenever the monitor configuration
changes.

10 years agoinspector: Don't show numeric ids
Matthias Clasen [Thu, 25 Feb 2016 06:10:23 +0000 (01:10 -0500)]
inspector: Don't show numeric ids

The vendor and product ids for input devices aren't useful
as-is; need to figure out how to translate them to names.

10 years agoinspector: Show more device information
Matthias Clasen [Thu, 25 Feb 2016 05:49:17 +0000 (00:49 -0500)]
inspector: Show more device information

This adds vendor and product id and axes. This reveals that
the GDK backends have quite different quality when it comes
to returning meaningful information here.

10 years agoinspector: Show some basic device information
Matthias Clasen [Thu, 25 Feb 2016 05:17:09 +0000 (00:17 -0500)]
inspector: Show some basic device information

Add information about seats and their associated devices
in the General tab.

10 years agogadget: Warn about missing size allocation
Matthias Clasen [Thu, 25 Feb 2016 03:18:13 +0000 (22:18 -0500)]
gadget: Warn about missing size allocation

When size_allocate is overridden in widgets, but draw is not,
we can end up drawing a gadget that has not been given a size.

Warn about this, and limp along by drawing the gadget over the
full allocation of its owner widget.

https://bugzilla.gnome.org/show_bug.cgi?id=762614

10 years agox11: More fake tablet blacklisting
Matthias Clasen [Thu, 25 Feb 2016 02:59:44 +0000 (21:59 -0500)]
x11: More fake tablet blacklisting

Sigh.

Now that we've neutered the QEMU USB tablet, I'm finding that
spice is doing just the same nonsense. It has a fake "spice vdagent
tablet". Blacklist that as well.

10 years agotreeview: Don't make things way too high
Benjamin Otte [Thu, 25 Feb 2016 03:02:39 +0000 (04:02 +0100)]
treeview: Don't make things way too high

If the size-request is larger than the dedicated size, don't increase
the dedicated size by the size request, only increase it to the
size request.

10 years agotextview: Draw the background properly
Benjamin Otte [Thu, 25 Feb 2016 02:57:47 +0000 (03:57 +0100)]
textview: Draw the background properly

The background is *not* drawn relative to the clipping area.

10 years agotreeview: Fix positioning of editing widgets
Benjamin Otte [Thu, 25 Feb 2016 02:57:11 +0000 (03:57 +0100)]
treeview: Fix positioning of editing widgets

This looks like a thinko.

10 years agoUpdated French translation
Claude Paroz [Wed, 24 Feb 2016 19:56:32 +0000 (20:56 +0100)]
Updated French translation

10 years agoGtkIMContext: remove broken anchors in documentation
Ben Iofel [Wed, 24 Feb 2016 19:37:35 +0000 (14:37 -0500)]
GtkIMContext: remove broken anchors in documentation

10 years agomir: fix warnings
William Hua [Wed, 24 Feb 2016 18:24:14 +0000 (13:24 -0500)]
mir: fix warnings